#ifndef _SERVER_CONFIG
#define _SERVER_CONFIG

#include "stdafx.h"
#include <string>
using namespace std;

#define SERVER_CONFIG_INI _T("WinHomeServer.ini")
#define  SERVERSETTINGS                  _T("ServerSettings")

#define  KEY_IPADDRESS                          _T("IPADDRESS")
#define  KEY_URL		                        _T("URL")
#define  KEY_FOLDER		                        _T("FOLDER")

class CServerConfig
{
public:
	CServerConfig();
	DWORD	m_IPAddress;
	wstring m_SharedFolder;
	wstring m_ConfigPath;
	wstring m_URLPath;

	void	SaveConfig();
	void	LoadConfig();
	void	CreateAllDirectory();
	BOOL	BuildDirectory(CString  strPath);
};
#endif